package com.ruoyi.oms.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单明细
 * </p>
 *
 * @author kenny
 * @since 2021-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("oms_order_item")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long orderId;

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 状态(1-正常,2-部分破损,3-全部破损)
     */
    private Integer status;

    /**
     * 订单商品名称
     */
    private String itemName;

    /**
     * 订单商品图片
     */
    private String itemPic;

    /**
     * 订单商品单价
     */
    private BigDecimal itemPrice;

    /**
     * 订单商品数量
     */
    private Integer itemNumber;

    /**
     * 订单商品金额
     */
    private BigDecimal itemAmount;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    private String createFrom;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 修改人
     */
    private String updateFrom;


}
